package cn.tedu.medicalmanagementsystem.user.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class UserLoginParam {
    @ApiModelProperty(value = "手机号",required = true)
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "用户密码名",required = true)
    @NotBlank(message = "密码不能为空")
    private String password;
}
